'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }

  async findId() {
    const { ctx } = this;
    console.log('help:', ctx.helper.getPassword('232432'))
    const data = await ctx.app.mysql.query('select * from users;')
    ctx.body = data;
  }
}

module.exports = HomeController;
